<template>
  <div>
    <div class="login">
      <div class="login_form">
        <div class="login_form_bg"></div>
        <div class="login_form_box">
          <div class="logo"></div>
          <div class="card">
            <div class="card_title">Email verification</div>
            <div class="card_item" style="margin-top: 58px">
              <div class="card_item_title">Email</div>
              <input type="text" placeholder="Enter your email address" />
            </div>
            <div class="card_item">
              <div class="card_item_title">Verification code</div>
              <input type="text" placeholder="Enter verification code" />
            </div>
            <div class="btn">Confirm</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup></script>
<style lang="scss" scoped>
.login {
  min-width: 1920px;
  height: 100vh;
  background: url("/static/bg_img.webp") no-repeat;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  &_form {
    height: 670px;
    background: #ffffff;
    border-radius: 15px;
    display: flex;
    &_bg {
      width: 540px;
      height: 100%;
      background: url("/static/login_form.webp");
      background-size: 100%;
    }
  }
  &_form_box {
    box-sizing: border-box;
    width: 470px;
    height: 100%;
    padding: 60px 40px;
  }
}
.btn {
  width: 390px;
  height: 52px;
  background: #255ff1;
  border-radius: 5px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 52px;
  text-align: center;
  cursor: pointer;
  margin-top: 58px;
}
.logo {
  width: 196px;
  height: 38px;
  background: url("/static/logo.png") no-repeat;
  background-size: 100%;
}
.card {
  margin-top: 80px;
  &_title {
    position: relative;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 20px;
    color: #262626;
  }
  &_item {
    margin-top: 30px;
    &_title {
      position: relative;
      font-family: Source Han Sans CN;
      font-weight: 400;
      font-size: 16px;
      color: #262626;
      text-indent: -10px;
      margin-left: 18px;
    }
    input {
      margin-top: 20px;
      width: 390px;
      padding: 0 10px;
      height: 44px;
      line-height: 44px;
      background: #ffffff;
      border-radius: 5px;
      border: 1px solid #e6ebf0;
      //聚焦
      &:focus {
        outline: 1px solid #255ff1;
      }
    }
  }
}
input::placeholder {
  font-weight: 400;
  font-size: 16px;
  color: #999999;
}
.card_title::before {
  position: absolute;
  content: "";
  width: 64px;
  height: 6px;
  background: linear-gradient(90deg, #255ff1, #ffffff);
  left: 2px;
  bottom: 0px;
}
.card_item_title::before {
  position: absolute;
  content: "*";
  color: red;
}
</style>
